Read OBJ file¶

In [1]:
import py3d
o = py3d.read_obj("Plate.obj", "Plate.jpg")
o.as_mesh()
Out[1]:

Show vertex

In [2]:
o.as_point(py3d.Color(r=1, g=0.7), pointsize=1)
Out[2]:

Read ply file

In [3]:
import py3d
mesh = py3d.read_ply("cube.ply")
print(mesh.vertices)
mesh.as_mesh()
[[0.0, 0.0, 0.0], [0.0, 0.0, 1.0], [0.0, 1.0, 1.0], [0.0, 1.0, 0.0], [1.0, 0.0, 0.0], [1.0, 0.0, 1.0], [1.0, 1.0, 1.0], [1.0, 1.0, 0.0]]
Out[3]:
In [ ]: